home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / ftn / greset.z / greset
Encoding:
Text File  |  2002-10-03  |  8.3 KB  |  314 lines

  1.  
  2.  
  3.  
  4. ggggrrrreeeesssseeeetttt((((3333GGGG))))                                                          ggggrrrreeeesssseeeetttt((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ggggrrrreeeesssseeeetttt - resets graphics state
  10.  
  11. FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ggggrrrreeeesssseeeetttt
  13.  
  14. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  15.      _n_o_n_e
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      ggggrrrreeeesssseeeetttt resets _a _p_o_r_t_i_o_n of the graphics state of a window to its default.
  19.  
  20.      See the following table for a listing of the state affected.
  21.  
  22.                        _____________________________________
  23.                             SSSSttttaaaatttteeee      |       VVVVaaaalllluuuueeee
  24.                        _____________________________________
  25.                         backface mode    off
  26.                         blinking         off
  27.                         buffer mode      single
  28.                         color            undefined
  29.                         color map mode   one map
  30.                         concave          off
  31.                         cursor           0 (arrow)
  32.                         depth range      _Z_m_i_n,_Z_m_a_x
  33.                         depthcue mode    off
  34.                         display mode     color map
  35.                         drawmode         NORMDR
  36.                         font             0
  37.                         linestyle        0 (solid)
  38.                         linewidth        1 pixel
  39.                         lsrepeat         1
  40.                         pattern          0 (solid)
  41.                         picking size     10x10 pixels
  42.                         RGB color        undefined
  43.                         RGB shaderange   undefined
  44.                         RGB writemask    undefined
  45.                         shademodel       GOURAU
  46.                         shaderange       0,7,_Z_m_i_n,_Z_m_a_x
  47.                         viewport         entire screen
  48.                         writemask        all planes enabled
  49.                         zbuffer mode     off
  50.                        _____________________________________
  51.                        ||||||||||||||||||||||||||||
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.                                                             ||||||||||||||||||||||||||||
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.           Notes
  108.  
  109.           +o    Font 0 is a Helvetica-like font.
  110.  
  111.           +o    _Z_m_i_n and _Z_m_a_x are the minimum and maximum values that you can
  112.                store in the z-buffer.  These depend on the graphics hardware
  113.                and are returned by ggggeeeettttggggddddeeee((((GGGGDDDDZZZZMMMMIIIINNNN)))) and ggggeeeettttggggddddeeee((((GGGGDDDDZZZZMMMMAAAAXXXX)))).
  114.  
  115.  
  116.  
  117.  
  118.                                                                         PPPPaaaaggggeeee 1111
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125. ggggrrrreeeesssseeeetttt((((3333GGGG))))                                                          ggggrrrreeeesssseeeetttt((((3333GGGG))))
  126.  
  127.  
  128.  
  129.           +o    On IRIS-4D B and G models, ggggrrrreeeesssseeeetttt also sets llllssssbbbbaaaacccckkkkuuuupppp((((FFFFAAAALLLLSSSSEEEE)))) and
  130.                rrrreeeesssseeeettttllllssss((((TTTTRRRRUUUUEEEE)))).
  131.  
  132.      ggggrrrreeeesssseeeetttt loads a 2-D orthographic projection transformation on the matrix
  133.      stack with left, right, bottom, and top set to the boundaries of the
  134.      screen (nnnnooootttt the current window).  It also turns on the cursor.
  135.  
  136.      ggggrrrreeeesssseeeetttt loads certain entries in the color map, as follows:
  137.  
  138.           _______________________________________________
  139.                                         RRRRGGGGBBBB VVVVaaaalllluuuueeee
  140.                                  ________________________
  141.              IIIInnnnddddeeeexxxx    |||  NNNNaaaammmmeeee   ||| _R_e_d
  142.                                       |   _G_r_e_e_n   | _B_l_u_e
  143.           _______________________________________________
  144.                0        BLACK       0        0        0
  145.                1        RED       255        0        0
  146.                2        GREEN       0      255        0
  147.                3        YELLOW    255      255        0
  148.                4        BLUE        0        0      255
  149.                5        MAGENT    255        0      255
  150.                6        CYAN        0      255      255
  151.                7        WHITE     255      255      255
  152.            all others   unnamed         unchanged
  153.           _______________________________________________
  154.           ||||||||||||||
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.                                                          ||||||||||||||
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.      It loads the PUPDRW color map with the following entries:
  183.  
  184.           _____________________________________
  185.                                 RRRRGGGGBBBB VVVVaaaalllluuuueeee
  186.                            ____________________
  187.            IIIInnnnddddeeeexxxx |||  NNNNaaaammmmeeee  ||| _R_e_d
  188.                                 | _G_r_e_e_n | _B_l_u_e
  189.           _____________________________________
  190.              1     PUPCOL   255      0      0
  191.              2     PUPBLK     0      0      0
  192.              3     PUPWHT   255    255    255
  193.           _____________________________________
  194.           ||||||||
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.                                                ||||||||
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.      It loads the CURSDR color map with the following entries:
  211.  
  212.           ____________________________
  213.                        RRRRGGGGBBBB VVVVaaaalllluuuueeee
  214.                   ____________________
  215.            IIIInnnnddddeeeexxxx ||| _R_e_d | _G_r_e_e_n | _B_l_u_e
  216.           ____________________________
  217.              1     255      0      0
  218.              2     255    255    255
  219.              3     255      0      0
  220.           ____________________________
  221.           ||||||||
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.                                       ||||||||
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.      On systems that do not have a 2-plane cursor, only index 1 is loaded.
  238.  
  239.  
  240.  
  241.  
  242.  
  243.                                                                         PPPPaaaaggggeeee 2222
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250. ggggrrrreeeesssseeeetttt((((3333GGGG))))                                                          ggggrrrreeeesssseeeetttt((((3333GGGG))))
  251.  
  252.  
  253.  
  254. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  255.      getgde
  256.  
  257. NNNNOOOOTTTTEEEESSSS
  258.      This routine is available only in immediate mode.
  259.  
  260.      ggggrrrreeeesssseeeetttt sets the viewport and the projection transformation to values
  261.      which assume that the current window occupies the entire screen, i.e. it
  262.      was created via ggggiiiinnnniiiitttt or ggggbbbbeeeeggggiiiinnnn.  If this is not the case, you will
  263.      probably want to call rrrreeeesssshhhhaaaappppeeee and load a different projection
  264.      transformation after calling ggggrrrreeeesssseeeetttt.
  265.  
  266.      This routine remains a part of the Graphics Library for reasons of
  267.      backwards compatibility only.  We do not recommend the use of this
  268.      routine in new development.
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.                                                                         PPPPaaaaggggeeee 3333
  310.  
  311.  
  312.  
  313.